﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpArch.Core.DomainModel;

namespace Peak.Core
{
  public abstract class EntityWithBusinessRules : Entity, IHasBusinessRules
  {
    private bool _rulesEnabled = true;
    public virtual void SetRulesEnabled(bool enabled)
    {
      _rulesEnabled = enabled;
    }

    public virtual bool RulesEnabled()
    {
      return _rulesEnabled;
    }
  }
}
